package com.example.mvvmdemo.database.room.mtv;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Mv {
    @PrimaryKey(autoGenerate = true)
    public long num = 0;
    private String id;
    private String title;
    private String year;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public Mv(String id, String title, String year) {
        this.id = id;
        this.title = title;
        this.year = year;
    }

    @Override
    public String toString() {
        return "Mv{" +
                "num=" + num +
                ", id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", year='" + year + '\'' +
                '}'+"\n";
    }
}
